<template>
  <div class="setup">
    <van-nav-bar title="设置" left-arrow @click-left="$router.back()" />
    <van-button @click="logout" block plain>退出登录</van-button>
  </div>
</template>

<script>
export default {
  methods: {
    logout() {
      this.$store.dispatch("auth/deleteAuthTokenAsync")
      this.$router.push("login")
    },
  },
}
</script>

<style lang="less" scoped></style>
